<script type="text/javascript">
$(function () {
	var url = '${contextPath}script/oa/goodsType.js';
	$.ajax({url:url, dataType:'script', cache:true,
		success: function(){
			
		}
	});
	
});
</script>

<#import "/freemarker/modeltype.ftl" as mt>

<div class="widget" >
	<div class="widget-content">
		<form id="editGoodsTypeForm">
		<input type="hidden" name="code" value="${(goodsType.code)!''}"/>
			<table style="width: 450px;">
				<tr height="40">
					<td style="width: 80px;">类型名称</td>
					<td><input class="form-control" type="text" id="name" name="name" value="${(goodsType.name)!''}" style="width:200px;"/></td>
				</tr>
				<tr><td style="width: 80px;">父类型</td>
					<td>
						<div class="input-group">
							<span class="btn-group">
								<input class="form-control" type="text" name="pname" id="pname" value="${(goodsType.pname)!''}" readonly style="width: 200px;">
								<input class="form-control" type="hidden" name="pc" id="pc" value="${(goodsType.pc)!''}" />
							</span>
						</div>
					</td>
				</tr>
				<tr height="20"></tr>
				<tr height="40">
					<td colspan="2" style="text-align: center;">
						<a href="javascript:;" class="btn btn-info" onclick="javascript: save_goodsType(); return false;"><i class="icon-save"></i>&nbsp;保&nbsp;&nbsp;存</a>
						<a href="javascript:;" class="btn btn-primary" onclick="javascript: sys_load_handle('goodsType');return false;"><i class="fontello-icon-block"></i>&nbsp;取&nbsp;&nbsp;消</a>
					</td>
				</tr>
			</table>
		</form>
	</div>
</div>